package cn.colat.micse.user.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "用户账号登录参数")
@NotNull(message = "登录参数不能为空")
public class AccountLoginVO {

    @ApiModelProperty("用户账号")
    @NotEmpty(message = "用户账号不能为空")
    private String username;

    @ApiModelProperty("密码")
    @NotEmpty(message = "密码不能为空")
    @Length(min = 6, max = 20, message = "密码长度必须在6-20位之间")
    private String password;

    @ApiModelProperty("登录设备")
    // @NotEmpty(message = "登录设备不能为空")
    private String device;
}
